import check from './checked.js'
import {updateUserInfo,uploadFiles} from '../http/index.js'
class uploadinfo extends check{
	constructor() {
		super();
	}
	async updata(value,token){
		const res = await updateUserInfo(value,token)
		return res
	}
	async uploadFile(value,token){
		const res = await uploadFiles(value,token)
		uni.hideLoading()
		return 'http://ls.ngrok2.xiaomiqiu.cn/'+res
	}
	
}
export default uploadinfo;